WHEN exists("DEVS:melodympeg.device")&exists(PlayMelody) then Player="MELODY"
WHEN exists("DEVS:peggympeg.device")&exists(PlayMelody) then Player="PEGGYMELODY"
WHEN exists("DEVS:mpeg.device")&exists(PlayMelody) then Player="CD32"
WHEN exists("DEVS:peggympeg.device")&showlist("A","PEGGYPLUS")=1 then Player="PEGGYPLAYER"
OTHERWISE Player="MPEGA"
END
end
dopus getfiletype '"'Titel'"' id
DT=result
/* Player starten & testen */
If DT="MP3"|Player="MPEGA" then do
if ~exists(PlayMPEG) then do
ADDRESS VALUE portname
dopus front
dopus request '"'getcatstr(9,'Fatal Error ...'lf''lf'MPEGA by Stephane TAVENARD not found !'lf'path to command: '"'%s'"'',PlayMPEG)'"' getcatstr(1,'Quit')
exit
end
if ~exists(BREAKMPEG) then do
ADDRESS VALUE portname
dopus front
dopus request '"'getcatstr(10,'Error ...'lf''lf'Breaktool by Kai Iske not found !'lf'path to command: '"'%s'"'',BREAKMPEG)'"' getcatstr(6,'OK')
end
if Player="PEGGYPLAYER" & show('P','Peggy') then address 'Peggy' QUIT
If (Player="MELODY"|Player="PEGGYMELODY"|Player="CD32") & show('P','MPEGPLAY.1') then address 'MPEGPLAY.1' 'QUIT'
end
address command BREAKMPEG" "PlayMPEG" C"
if DT="MP2" then do
if Player="MELODY" & exists(PlayMelody) & ~show('P','MPEGPLAY.1') then do
if DT="MP2" & (Player="MELODY"|Player="PEGGYMELODY"|Player="CD32") then do
if ~show('P','MPEGPLAY.1') then do
ADDRESS VALUE portname
dopus front
dopus request '"'getcatstr(11,'Fatal Error ...'lf''lf'MPEGPlay V1.0+ by Thorsten Hansen not found !'lf'Path to Command: '"'%s'"''lf'For Setup use Player-Setup !',PlayMelody)'"' getcatstr(1,'Quit')